home *** CD-ROM | disk | FTP | other *** search
- class classes.ui.IntroScreen extends classes.ui.AbstractWidget
- {
- var next_btn;
- static var BUTTON_CLICKED = "button_clicked";
- function IntroScreen()
- {
- super();
- classes.core.SoundManager.getInstance().startMusicTrack("storm_loop");
- this.doLater(this.init);
- }
- function init()
- {
- this.next_btn.addEventListener(classes.ui.TextButton.CLICK,this,"onButtonClick");
- }
- function onButtonClick(e)
- {
- var _loc0_ = null;
- if((_loc0_ = e.target) === this.next_btn)
- {
- if(classes.core.SOManager.getInstance().showHelpAtStart)
- {
- classes.core.SOManager.getInstance().showHelpAtStart = false;
- classes.ui.InstructionScreen.invokedFromMainMenu = false;
- classes.core.Application.getInstance().gotoInstructionsScreen();
- }
- else
- {
- classes.core.Application.getInstance().gotoMapScreen();
- }
- }
- }
- function dispose()
- {
- this.next_btn.dispose();
- super.dispose();
- }
- }
-